Skip to content

Add support for process.disk.io metric in system-metrics instrumentation#4397

Open
Manvi2402 wants to merge 1 commit intoopen-telemetry:mainfrom
Manvi2402:add-process-disk-io-metric
Open

Add support for process.disk.io metric in system-metrics instrumentation#4397
Manvi2402 wants to merge 1 commit intoopen-telemetry:mainfrom
Manvi2402:add-process-disk-io-metric

Conversation

@Manvi2402
Copy link
Copy Markdown

Description

Adds support for the process.disk.io metric to opentelemetry-instrumentation-system-metrics.

Fixes #3647

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Added unit tests for process.disk.io:

  • test_process_disk_io — verifies read_bytes and write_bytes are collected correctly
  • test_process_disk_io_not_implemented_error — verifies graceful handling on platforms where io_counters() is unavailable (e.g. macOS)

Run locally with:
pytest tests/test_system_metrics.py -v -k "disk_io or process_metrics_instrument"
Result: 42 passed, 1 skipped, 0 failed

Does This PR Require a Core Repo Change?

  • Yes. - Link to PR:
  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@Manvi2402 Manvi2402 requested a review from a team as a code owner April 5, 2026 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

add support for process.disk.io to opentelemetry-instrumentation-system-metrics

1 participant